#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time   : 2021/6/17 23:18
# @Author : cjw
import os
import time

import pytest
from pytest_task1.setting import RESULT_PATH


def run():
    now_time = time.strftime('%Y_%m_%d_%H_%M_%S')
    xml_report = os.path.join(RESULT_PATH, f'{now_time}_junit-xml.xml')
    pytest.main([f'--junit-xml={xml_report}'])


if __name__ == '__main__':
    run()
